﻿@model VideoCache.Server.ViewModel.SiteModel
@{
    ViewBag.Title = "新建";
}
<h2>@ViewBag.Title</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.DisplayName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DisplayName)
            @Html.ValidationMessageFor(model => model.DisplayName)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.Url)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Url)
            @Html.ValidationMessageFor(model => model.Url)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.AllowDownload)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AllowDownload)
            @Html.ValidationMessageFor(model => model.AllowDownload)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.Downloader)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Downloader)
            @Html.ValidationMessageFor(model => model.Downloader)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.PositionTag)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PositionTag)
            @Html.ValidationMessageFor(model => model.PositionTag)
        </div>
    </div>
    <div class="unit">
        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerId)
            @Html.ValidationMessageFor(model => model.PlayerId)
        </div>
    </div>
    <div class="unit">
        <input type="submit" value="Create" />
        @Html.ActionLink("Back to List", "Index")
    </div>
}